<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>移动端布局</title>
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.css">
    <link rel="stylesheet" href="./lib/mui/css/mui.css">
    <link rel="stylesheet" href="./css/forPublic.css">
    <link rel="stylesheet" href="./css/conmon.css">
    <link rel="stylesheet" href="./css/search.css">
</head>

<body>
    <div class="le-tao">
        <!-- 头部 -->
        <div class="letao-top">
            <a href="#"><i class="mui-icon mui-icon-home"></i></a>
            <p>乐淘购物</p>
            <a href="#" style="background:none"><i class="mui-icon" ></i></a>
        </div>
        <!-- 主要内容区 -->
        <div class="letao-main">
            <div class="search-input mt-20">
                <input type="text" id="sh-input" placeholder="请输入关键字">
                <button type="button" class="mui-btn mui-btn-primary search-btn">搜索</button>
            </div>
            <!-- 搜索区域 -->
            <div class="search-main">

            </div>
            <!-- <div class="clear-histey">
                <span class="pull-left">搜索历史</span>
                <a href="#">
                    <span class="pull-right"><i class="mui-icon mui-icon-trash"></i> 清空历史</span>
                </a>
            </div>
            <ul class="search-history">
                <li class="dateil-his">
                    <span class="pull-left">写</span>
                    <i class="mui-icon mui-icon-closeempty pull-right"></i>
                </li>
             </ul> -->
        </div>
        <!-- 底部区域 -->
        <div class="letao-footer">
            <a href="#" class="current-color"><i class="mui-icon mui-icon-home "></i><p>首页</p></a>
            <a href="./categry.html"><i class="mui-icon mui-icon-list"></i><p>分类</p></a>
            <a href="#"><i class="fa fa-shopping-cart"></i><p>购物车</p></a>
            <a href="#"><i class="mui-icon mui-icon-contact"></i><p>用户</p></a>
        </div>
    </div>
    <!-- 模板引擎创建 -->
    <script type="text/html" id="temp">
        {{if list.length==0}}
        <div>这里还没有数据</div>
        {{else}}
        <div class="clear-histey">
            <span class="pull-left">搜索历史</span>
            <a href="javascript:void(0);" class="del-histroy">
                <span class="pull-right"><i class="mui-icon mui-icon-trash"></i> 清空历史</span>
            </a>
        </div>
        <ul class="search-history">
            {{each list v i}}
            <li class="dateil-his">
                <span class="pull-left">{{v}}</span>
                <i class="mui-icon mui-icon-closeempty pull-right one-del" data-index={{i}}></i>
            </li>
            {{/each}}
        </ul>
        {{/if}}
    </script>
    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/search.js"></script>
</body>

</html>